<!--
  Generated template for the FavoriteFilePage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>附件打开测试</ion-title>
  </ion-navbar>

</ion-header>


<ion-content>
    <ion-item>
        <div>{{filePath}}</div>
        <div>{{resourceId}}</div>
    </ion-item>
    <ion-item>
        <div><input type="text" #fileName /></div>
    </ion-item>
    <ion-item>
        <div>
            <button (click)="downloadFile(fileName.value)">下载文件</button>
            <button (click)="openJpegFile()">打开图片</button>
            <button (click)="openPdfFile()">打开PDF</button>
            <button (click)="openMP4File()">打开MP4</button>
        </div>
        <div>
            <button (click)="upLoadFile('aa.jpg', 'image/jpeg')">上传</button>
            <button (click)="getResourceFile()">下载</button>
            <button (click)="downloadFile2('8a74819e6228594d016229ed68c40088')">测试下载</button>
        </div>
    </ion-item>
</ion-content>
